https://interactive-examples.mdn.mozilla.net/media/examples/plumeria.jpg

Markdown 语法

#块 Block

使用 两次回车新建一个块,即两个\n换行符

#前言 Frontmatter

一个位于文件头,可选的,以 Yaml 为语法记录元数据的方式

4442
55476
22
链接到文件
Link to a page: [[Internal Links]]
使用 # 链接到笔记中的标题
Link to a page: [[Internal Links#Heading 2]]
使用 #^ 链接到笔记中的块
Link to a page: [[Windows 下 CLion 开发 Rust 的 Debugger 配置#^9b8041]]
使用 | 显示自定义文本
Link to a page: [[Internal Links|custom display text]]

此链接无需输入路径,将自动匹配资源库下的内容 此处块部分语法是:^9b8041,包含上面的一个段落,9b8041是段落 ID,一般由 Obsidian 生成,解析时需要考虑

查看:Internal Links

#内部嵌入 Embeds

嵌入笔记
![[Internal links]]
使用 # 嵌入笔记的标题部分
![[Internal links#Heading 2]]
使用 #^ 嵌入笔记的块部分
![[Internal links#^365d428]]
嵌入图像文件
![[exmaple.jpg]]
使用 | 指定嵌入图像的宽高
![[exmaple.jpg|200]]
![[exmaple.jpg|200x200]]
(考虑实现) 指定嵌入图像的属性
![[exmaple.jpg#width=200&height=300&fit=cover]]
嵌入音频文件
![[川井宪次-_かわい-けんじ_-孤独な巡礼-_孤独的巡礼_.mp3]]
嵌入PDF文件并指定页码
![[document.pdf#page=3]]

查看:Embedding Files

#标题 Heading

# This is a heading 1

also use the alternative

This is a Heading 1
===

## This is a heading 2

This is a Heading 2
---

### This is a heading 3

#### This is a heading 4

##### This is a heading 5

###### This is a heading 6
# This is a heading 1

also use the alternative

This is a Heading 1
===
## This is a heading 2
This is a Heading 2
---
### This is a heading 3
#### This is a heading 4
##### This is a heading 5
###### This is a heading 6

#重点 Emphasis

italic

*This text will be italic*
_This will also be italic_

This text will be italic This will also be italic

bold

**This text will be bold**
__This will also be bold__

This text will be bold This will also be bold

combine them

_You **can** combine them_

You can combine them

#列表 Lists

Unnumbered lists

- Item 1
- Item 2
	- Item 2a
	- Item 2b

Numbered lists

1. Item 1
2. Item 2
3. Item 3
	1. Item 3a
	2. Item 3b
  1. Item 1
  2. Item 2
  3. Item 3
    1. Item 3a
    2. Item 3b

#图像 Images

![grapefruit](https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg)
使用 | 指定图像的大小
![grapefruit|100](https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg)

grapefruit

grapefruit

[Mozilla Developer Network](https://developer.mozilla.org/en-US/)

Mozilla Developer Network

如果未给定协议,则进行本地匹配,支持:https?obsidian

链接地址中的空格等敏感字符需要转义,或者使用下面的语法

[Slides Demo](<Slides Demo>)

Slides Demo

#块引用 Blockquotes

> 无人爱苦,亦无人寻之欲之,乃因其苦...

无人爱苦,亦无人寻之欲之,乃因其苦...

#代码 Code

Inline code

Text inside `backticks` on a line will be formatted like code.

Text inside backticks on a line will be formatted like code.

Code blocks

```rust
fn main(){
	pritntf!("Hello World")
}
```
fn main(){
	pritntf!("Hello World")
}

Escape code block

~~~rust
fn main(){
	pritntf!("Hello World")
}
~~~
fn main(){
	pritntf!("Hello World")
}

Escape inline code

single backtick: `` ` ``
triple ticks: `` ``` ``

single backtick: ` triple ticks: ```

#任务列表 Task list

- [x] #tags, [links](), **formatting** supported
- [x] list syntax required (any unordered or ordered list supported)
- [x] this is a complete item
- [?] this is also a complete item (works with every character)
- [ ] this is an incomplete item
- [ ] tasks can be clicked in Preview to be checked off

#定义列表 Definition Lists [Unsupportted]

注:Obsidian 不支持 CFM 不支持

First Term : This is the definition of the first term

Second Term : This

#表格 Tables

|First Header | Second Header|
|------------ | ------------|
|Content from cell 1 | Content from cell 2|
|Content in the first column | Content in the second column|
First HeaderSecond Header
Content from cell 1Content from cell 2
Content in the first columnContent in the second column

The vertical bars at the start and end of a line are optional.

First Header | Second Header
------------ | ------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column
First HeaderSecond Header
Content from cell 1Content from cell 2
Content in the first columnContent in the second column

Tables can be justified with a colon

First Header  | Second Header | Third Header
:------------ | ------------: | :------------:
Content from cell 1 | Content from cell 2 | Content from cell 3
Content in the first column | Content in the second column | Content in the third column
First HeaderSecond HeaderThird Header
Content from cell 1Content from cell 2Content from cell 3
Content in the first columnContent in the second columnContent in the third column

#删除线 Strikethrough

Any word wrapped with two tildes (like ~~this~~) will appear crossed out.

Any word wrapped with two tildes (like this) will appear crossed out.

#高亮 Highlighting

Use two equal signs to ==highlight text==.

Use two equal signs to highlight text.

#水平线 Horizontal Bar

Use three stars ***, hyphens ---, or underscores ___ in a new line to produce an horizontal bar.

Use three stars ***, hyphens


, or underscores


in a new line to produce an horizontal bar.


#脚注 Fontnotes

Here's a simple footnote,[^1] and here's a longer one.[^bignote]

[^1]: meaningful!

[^bignote]: Here's one with multiple paragraphs and code.

    Indent paragraphs to include them in the footnote.

    `{ my code }`

    Add as many paragraphs as you like.

Here's a simple footnote, [1] and here's a longer one. [2]

#数学 Math

Block

$$\begin{vmatrix}a & b\\
c & d
\end{vmatrix}=ad-bc$$

Inline

You can also do inline math like $e^{2i\pi} = 1$

You can also do inline math like

#注释 Comments

Here is some inline comments: %%You can't see this text%% (Can't see it in Reading mode)

Here is a block comment: (can't see it in Reading mode either)

%%
It can span
multiple lines
%%

Here is some inline comments: (Can't see it in Reading mode)

Here is a block comment: (can't see it in Reading mode either)

#标注 Callouts

> [!INFO]
> Here's a callout block.
> It supports **markdown**
Info

Here's a callout block. It supports markdown

补充:Github Flavored Markdown(GFM)

Hammerspoon 是一个 macos 上的自动化工具

#Basics

#Extras

:fff{红色的文本}

:dog:


  1. meaningful!

  2. Here's one with multiple paragraphs and code.

    Indent paragraphs to include them in the footnote.

    { my code }

    Add as many paragraphs as you like.

2793 Words

最后更新于